# from langchain_core.tools import tool
# from langchain_openai import ChatOpenAI
#
# chat_model = ChatOpenAI(
#     openai_api_key="key",
#     openai_api_base="https://api.moonshot.cn/v1",
#     model="moonshot-v1-8k",
#     temperature=0,
#     request_timeout=60,
#     max_retries=3,
# )
# @tool
# def get_temperature(city:str)->int:
#     """获取某城市的天气温度"""
#     return 30
#
# tool_list=[get_temperature]
